package testcase;

import org.junit.Test;

import views.ExamplesRadioButtonsView;
import annotations.Browser;
import annotations.EntryPoint;
import core.BaseTestCase;
import enums.Browsers;

@EntryPoint("RadioButtons.html")
@Browser(Browsers.Firefox)
public class RadioButtonTests extends BaseTestCase {

	@Test
	public void testRadioButtonCheck() {
		ExamplesRadioButtonsView w3SchoolFormView = new ExamplesRadioButtonsView();
		
		w3SchoolFormView.maleRadioButton.isChecked(false);
		w3SchoolFormView.femaleRadioButton.isChecked(false);

		w3SchoolFormView.maleRadioButton.check();

		w3SchoolFormView.maleRadioButton.isChecked(true);
		w3SchoolFormView.femaleRadioButton.isChecked(false);

		w3SchoolFormView.femaleRadioButton.check();
		
		w3SchoolFormView.maleRadioButton.isChecked(false);
		w3SchoolFormView.femaleRadioButton.isChecked(true);

	}
	
	@Test
	public void testRadioButtonEnableDisable() {
		ExamplesRadioButtonsView w3SchoolFormView = new ExamplesRadioButtonsView();
		
		w3SchoolFormView.enabledRadioButton.isEnabled(true);
		w3SchoolFormView.disabledRadioButton.isEnabled(false);

	}
	
	@Test
	public void testRadioButtonShownHidden() {
		ExamplesRadioButtonsView w3SchoolFormView = new ExamplesRadioButtonsView();
		
		w3SchoolFormView.shownRadioButton.isVisible(true);
		w3SchoolFormView.hiddenRadioButton.isVisible(false);

	}

}
